package com.example.demo.repository;


import com.example.demo.model.Plant;
import javafx.beans.binding.BooleanExpression;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;

import java.util.List;

/**
 * Created by Lx on 2018/6/27.
 */
public interface PlantReposirtory extends JpaRepository<Plant,Integer>,QueryDslPredicateExecutor<Plant> {
    List<Plant> findByCode(String code);
}
